home *** CD-ROM | disk | FTP | other *** search
/ Graphics & Sound Program…ng Techniques for the Mac / Graphics and Sound Programming Techniques for the Mac.iso / M&T Graphics & Sound Examples / Metrowerks Versions / C04 Speech / READ ME Speech
Encoding:
Text File  |  1995-08-31  |  1.5 KB  |  31 lines  |  [TEXT/ttxt]

  1. READ ME Speech
  2.  
  3. __________________________________________________________
  4.  
  5. The Speech Manager relies on the Sound Manager. If you need the Sound Manager, refer to the Chapter 2 READ ME file.
  6.  
  7. __________________________________________________________
  8.  
  9. The Speech Manager extension can be found as a part of System 7.5. If you don't have the Speech Manager extension in your System Folder, and you have System 7.5, search your system disks or CD for it and copy it to your Extensions folder. Metrowerks has also included a copy of this extension in the System Extensions folder found in the Apple Development Products folder of the MW CodeWarrior CD.
  10.  
  11. __________________________________________________________
  12.  
  13. If you experience any problems with speech on your Mac, add the following to lines of code after any call to either of the two Toolbox Speak functions: SpeakString() or SpeakText(). Chapter 4 provides the details of the SpeechBusy() function.
  14.  
  15.    while ( SpeechBusy() == true )
  16.       ;
  17.  
  18. Your code will then look something like this:
  19.  
  20.    theError = SpeakText( theChannel, (Ptr)(theString + 1), theString[0] );
  21.    if ( theError != noErr )
  22.       ExitToShell();
  23.  
  24.    while ( SpeechBusy() == true )
  25.       ;
  26.  
  27. __________________________________________________________
  28.  
  29. If you don't like what's being said in any of the Chapter 4 programs, you can of course change the text that's spoken. Whether the text is in the code or in a STR# resource, just make the change and recompile.
  30.  
  31.